#ifndef __ExtrasState_h__
#define __ExtrasState_h__

#include <iostream>
#include <string>
#include <sstream>
#include <list>
#include <Ogre.h>
#include <OIS/OIS.h>

#include <GameState.h>
#include <IntroState.h>

enum ExtraType {Records, Credits};

class ExtrasState: public Ogre::Singleton<ExtrasState>, public GameState
{
  public:
    ExtrasState();

    void enter();
    void exit();
    void pause();
    void resume();

    void keyPressed(const OIS::KeyEvent&);
    void keyReleased(const OIS::KeyEvent&);

    void mouseMoved(const OIS::MouseEvent&);
    void mousePressed(const OIS::MouseEvent&, OIS::MouseButtonID);
    void mouseReleased(const OIS::MouseEvent&, OIS::MouseButtonID);

    bool frameStarted(const Ogre::FrameEvent&);
    bool frameEnded(const Ogre::FrameEvent&);

    void setType(const ExtraType);

    // Heredados de Ogre::Singleton.
    static ExtrasState& getSingleton();
    static ExtrasState* getSingletonPtr();

  protected:
    Ogre::Root* _root;
    Ogre::RenderWindow* _win;
    Ogre::OverlayManager* _overlayMgr;
    ExtraType _extraType;
    bool _exitGame;
};

#endif
